package com.xiao.ztree.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiao.ztree.sys.entity.Article;
import com.xiao.ztree.sys.mapper.ArticleMapper;
import com.xiao.ztree.sys.query.ArticleQuery;
import com.xiao.ztree.sys.service.IArticleService;
import com.xiao.ztree.sys.vo.ArticleVo;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author XiaoCoder
 * @since 2021-04-29
 */
@Service
@AllArgsConstructor
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements IArticleService {

    final private ArticleMapper articleMapper;

    @Override
    public List<ArticleVo> listAll(ArticleQuery articleQuery) {
        return articleMapper.selectAllArticle(articleQuery);
    }
}
